Skip to main content

NBodySimulation

NBodySimulation[law,{state1,…,staten},t] generates a simulation of the motion of a system of n bodies with initial states statei, governed by the specified potential or force law, over a length of time t.

NBodySimulation[law,<|body1->state1,…,bodyn->staten|>,t] generates a simulation of the motion of a system of n bodies with names bodyi.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.